home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Bomber Bob.swf / scripts / DefineSprite_50 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.2 KB  |  54 lines

  1. stop();
  2. this.onEnterFrame = function()
  3. {
  4.    if(this.hittest(_root.p1.p1.targetZone))
  5.    {
  6.       _root.p1.p1.play();
  7.       _root.p1.b1 = false;
  8.       _root.score = _root.score + 1;
  9.       gotoAndPlay(2);
  10.    }
  11.    if(this.hittest(_root.p2.p1.targetZone))
  12.    {
  13.       _root.p2.p1.play();
  14.       _root.p2.b1 = false;
  15.       _root.score = _root.score + 1;
  16.       gotoAndPlay(2);
  17.    }
  18.    if(this.hittest(_root.p2.p2.targetZone))
  19.    {
  20.       _root.p2.p2.play();
  21.       _root.p2.b2 = false;
  22.       _root.score = _root.score + 1;
  23.       gotoAndPlay(2);
  24.    }
  25.    if(this.hittest(_root.p3.p1.targetZone))
  26.    {
  27.       _root.p3.p1.play();
  28.       _root.p3.b1 = false;
  29.       _root.score = _root.score + 1;
  30.       gotoAndPlay(2);
  31.    }
  32.    if(this.hittest(_root.p3.p2.targetZone))
  33.    {
  34.       _root.p3.p2.play();
  35.       _root.p3.b2 = false;
  36.       _root.score = _root.score + 1;
  37.       gotoAndPlay(2);
  38.    }
  39.    if(this.hittest(_root.p3.p3.targetZone))
  40.    {
  41.       _root.p3.p3.play();
  42.       _root.p3.b3 = false;
  43.       _root.score = _root.score + 1;
  44.       gotoAndPlay(2);
  45.    }
  46.    if(this.hittest(_root.p4.p1.targetZone))
  47.    {
  48.       _root.p4.p1.play();
  49.       _root.p4.b1 = false;
  50.       _root.score = _root.score + 1;
  51.       gotoAndPlay(2);
  52.    }
  53. };
  54.